<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:ipmss="http://java.sun.com/jsf/composite/ipmss" xmlns:t="http://java.sun.com/jsf/composite/tags">

<ui:composition template="mainTemplate.xhtml">
	<ui:define name="content">
		<h:outputScript library="javaScript" name="desktop.js" />
		<ui:include src="dwrScripts.xhtml" />


		<ui:include src="mainMenu.xhtml" />


		<p:outputPanel id="mainPanel" style="widh:2900px; height:1600px;  display:block;  background:#FFFFFF;">


			<!-- 
 <p:ajaxStatus onstart="console.log('start');"  oncomplete="console.log('complete')">
	    <f:facet name="start">  
        <script> console.log('ssssssssssssss');</script>
    </f:facet>  
     
    <f:facet name="complete">  
     jhgjfgjhfgh<script> console.log('cccccccccccccc');</script>
    </f:facet> 
		</p:ajaxStatus> 
		<p:panel style="width:44px;height:44px;" id="pa"  > </p:panel>
		<p:draggable for="pa" containment="parent"></p:draggable>-->
			<t:panel viewName="testview"  rendered="#{desktopViewBean.testViewVisible}"/>
			<t:panel viewName="testview2"  rendered="#{desktopViewBean.testView2Visible}"/>
			<t:panel viewName="testview3"  rendered="#{desktopViewBean.testView3Visible}"/>
			<t:panel viewName="testview4" rendered="false" />
			<t:panel viewName="testview5" rendered="false" />
			<t:panel viewName="testview6"  rendered="false"/>
			<t:panel viewName="UsersManagementMainView" rendered="#{desktopViewBean.usersManagementMainViewVisible}"/>
			<t:panel viewName="ProjectsListMainView" rendered="#{desktopViewBean.projectsListMainViewVisible}" />
			<t:panel viewName="TasksListMainView" rendered="#{desktopViewBean.tasksListMainViewVisible}" />
			<t:panel viewName="ScheduleMainView" rendered="#{desktopViewBean.scheduleMainViewVisible}" />
			<t:panel viewName="ScheduleDetailsView" rendered="#{desktopViewBean.scheduleDetailsViewVisible}" />
			<t:panel viewName="NewProjectMainView" rendered="#{desktopViewBean.newProjectMainViewVisible}" />

		</p:outputPanel>

		<p:droppable for="mainPanel" onDrop="panelDrop"></p:droppable>


		<h:form id="aa"> 
		|
		
					<h:outputText value="#{secondBean.refreshNo}" />|
         <div id="ref">
				<h:outputText id="refre" value="#{secondBean.refreshNoo}" />
				|
				<h:outputText id="refre2" value="#{secondBean.refreshNooo}" />
			</div>
			<h:commandButton value="ZalogujALL">
				<f:ajax execute="aa" render="aa" />
p
				</h:commandButton>
			<h:commandButton value="Welcome" action="#{secondBean.welcome}" />
			<h:commandButton value="SEC" action="secured/login?faces-redirect=true" />
			<h:commandButton value="Test" action="#{DesktopRemoteBean.test}" />
		</h:form>


		<h:link outcome="/users.xhtml">View users</h:link>
		<!--  	  	<p:dock>
	<p:menuitem value="Home" icon="/images/dock/home.png" url="#"/>
	<p:menuitem value="Music" icon="/images/dock/music.png" url="#"/>
	<p:menuitem value="Video" icon="/images/dock/video.png" url="#"/>
	<p:menuitem value="Email" icon="/images/dock/email.png" url="#"/>
	<p:menuitem value="Portfolio" icon="/images/dock/portfolio.png" url="#"/>
	<p:menuitem value="Link" icon="/images/dock/link.png" url="#"/> 
	<p:menuitem value="RSS" icon="/images/dock/rss.png" url="#"/>
	<p:menuitem value="History" icon="/images/dock/history.png" url="#"/>
</p:dock>-->
	<!--	<p:breadCrumb preview="true" expandEffectDuration="200" expandedBeginningItems="0" expandedEndItems="0" previewWidth="24"
			style="bottom:0px; position:fixed;  width:100%; padding:10px; text-align:center;">
			<p:menuitem value="Categories" url="#" />
			<p:menuitem value="Sports" url="#" />
			<p:menuitem value="Football" url="#" />
			<p:menuitem value="Countries" url="#" />
			<p:menuitem value="Spain" url="#" />
			<p:menuitem value="F.C. Barcelona" url="#" />
			<p:menuitem value="Squad" url="#" />
			<p:menuitem value="Lionel Messi" url="#" />
		</p:breadCrumb>  -->

	</ui:define>
</ui:composition>

</html>
